<%@page import="org.jeecgframework.web.util.StaticValue"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
	<div region="center" style="padding:1px;">
		<t:datagrid name="zyEquipmentChangeList" checkbox="true" fitColumns="false" title="巡检设备变更申请" 
			actionUrl="zyEquipmentChangeController.do?datagridOfEsChangeOfHomePageTask&homePageType=${homePageType }" idField="id" fit="true" queryMode="group">
			<t:dgCol title="主键"  		field="id"  	hidden="true"	width="120"></t:dgCol>
			<t:dgCol title="巡检设备变更申请ID"  	field="changeId"    		queryMode="single"	width="140"	query="true"></t:dgCol>
			<t:dgCol title="巡检计划ID"  		field="planId"				queryMode="single"	width="120" query="true"></t:dgCol>
			<t:dgCol title="设备SN"  			field="equipmentSpareSn"	queryMode="single"	width="120"	query="true"></t:dgCol>
			<t:dgCol title="影院名称"  			field="zyCinema.name"		queryMode="single"	width="120"	query="true"></t:dgCol>
			<t:dgCol title="变更类型"  			field="changeType"    		queryMode="single"	width="120"	query="true" dictionary="<%=StaticValue.DIC_EQ_CHANGE_TYPE %>"></t:dgCol>
			<t:dgCol title="申请时间"  			field="requestTime" 		width="120"		formatter="yyyy-MM-dd"></t:dgCol>
			<t:dgCol title="审批时间"  			field="approvalTime"		width="120"		formatter="yyyy-MM-dd"></t:dgCol>
			<t:dgCol title="审批状态"  			field="approvalState"    	queryMode="single"	width="120"	query="true" dictionary="<%=StaticValue.DIC_EQ_CHANGE_REQ_STATE %>"></t:dgCol>
			<t:dgCol title="审批说明"  			field="approvalRemark"    	width="240"></t:dgCol>
			
			<t:dgToolBar title="新建申请单" icon="icon-add" url="zyEquipmentChangeController.do?goAdd" funname="add"></t:dgToolBar>
		</t:datagrid>
	</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
	$("#zyEquipmentChangeListtb").find("input[name='requestTime_begin']").attr({"class":"Wdate","id":"requestTime_begin","style":"height:20px;width:90px;"}).click(function(){
		WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'requestTime_end\')}'});
	});
	$("#zyEquipmentChangeListtb").find("input[name='requestTime_end']").attr({"class":"Wdate","id":"requestTime_end","style":"height:20px;width:90px;"}).click(function(){
		WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'requestTime_begin\')}'});
	});
	$("#zyEquipmentChangeListtb").find("input[name='approvalTime_begin']").attr({"class":"Wdate","id":"approvalTime_begin","style":"height:20px;width:90px;"}).click(function(){
		WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'approvalTime_end\')}'});
	});
	$("#zyEquipmentChangeListtb").find("input[name='approvalTime_end']").attr({"class":"Wdate","id":"approvalTime_end","style":"height:20px;width:90px;"}).click(function(){
		WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'approvalTime_begin\')}'});
	});
});

</script>